<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: zxing::BitSource Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>zxing</b></li><li class="navelem"><a class="el" href="classzxing_1_1_bit_source.html">BitSource</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classzxing_1_1_bit_source-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">zxing::BitSource Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_bit_source_8h_source.html">BitSource.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for zxing::BitSource:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classzxing_1_1_bit_source.png" usemap="#zxing::BitSource_map" alt=""/>
  <map id="zxing::BitSource_map" name="zxing::BitSource_map">
<area href="classzxing_1_1_counted.html" alt="zxing::Counted" shape="rect" coords="0,0,102,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a65d6281c4c8eb6a069e49cbb4d8ab775"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1_bit_source.html#a65d6281c4c8eb6a069e49cbb4d8ab775">BitSource</a> (<a class="el" href="classzxing_1_1_array_ref.html">ArrayRef</a>&lt; byte &gt; &amp;bytes)</td></tr>
<tr class="separator:a65d6281c4c8eb6a069e49cbb4d8ab775"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae69f0293dfc003087313fb6a8924d399"><td class="memItemLeft" align="right" valign="top"><a id="ae69f0293dfc003087313fb6a8924d399"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getBitOffset</b> ()</td></tr>
<tr class="separator:ae69f0293dfc003087313fb6a8924d399"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae27073069e7a7d3dfdb4912d30e4d453"><td class="memItemLeft" align="right" valign="top"><a id="ae27073069e7a7d3dfdb4912d30e4d453"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getByteOffset</b> ()</td></tr>
<tr class="separator:ae27073069e7a7d3dfdb4912d30e4d453"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe5162247749e9d9eeb9afcec8738252"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1_bit_source.html#abe5162247749e9d9eeb9afcec8738252">readBits</a> (int numBits)</td></tr>
<tr class="separator:abe5162247749e9d9eeb9afcec8738252"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fd3c660b77ad591ceb0da69dd43566d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzxing_1_1_bit_source.html#a9fd3c660b77ad591ceb0da69dd43566d">available</a> ()</td></tr>
<tr class="separator:a9fd3c660b77ad591ceb0da69dd43566d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classzxing_1_1_counted"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classzxing_1_1_counted')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classzxing_1_1_counted.html">zxing::Counted</a></td></tr>
<tr class="memitem:af047acf66444dfd684b3ef16b96c8abd inherit pub_methods_classzxing_1_1_counted"><td class="memItemLeft" align="right" valign="top"><a id="af047acf66444dfd684b3ef16b96c8abd"></a>
<a class="el" href="classzxing_1_1_counted.html">Counted</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>retain</b> ()</td></tr>
<tr class="separator:af047acf66444dfd684b3ef16b96c8abd inherit pub_methods_classzxing_1_1_counted"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34015014640d6d7b1bae4b116deaaa70 inherit pub_methods_classzxing_1_1_counted"><td class="memItemLeft" align="right" valign="top"><a id="a34015014640d6d7b1bae4b116deaaa70"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>release</b> ()</td></tr>
<tr class="separator:a34015014640d6d7b1bae4b116deaaa70 inherit pub_methods_classzxing_1_1_counted"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eaaffdfcfb10f2b48d2e2e7ffdd9d6d inherit pub_methods_classzxing_1_1_counted"><td class="memItemLeft" align="right" valign="top"><a id="a8eaaffdfcfb10f2b48d2e2e7ffdd9d6d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>count</b> () const</td></tr>
<tr class="separator:a8eaaffdfcfb10f2b48d2e2e7ffdd9d6d inherit pub_methods_classzxing_1_1_counted"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This provides an easy abstraction to read bits at a time from a sequence of bytes, where the number of bits read is not often a multiple of 8.</p>
<p>This class is not thread-safe.</p>
<dl class="section author"><dt>Author</dt><dd><a href="#" onclick="location.href='mai'+'lto:'+'sro'+'we'+'n@g'+'oo'+'gle'+'.c'+'om'; return false;">srowe<span style="display: none;">.nosp@m.</span>n@go<span style="display: none;">.nosp@m.</span>ogle.<span style="display: none;">.nosp@m.</span>com</a> (Sean Owen) </dd>
<dd>
<a href="#" onclick="location.href='mai'+'lto:'+'chr'+'is'+'tia'+'n.'+'bru'+'ns'+'che'+'n@'+'gma'+'il'+'.co'+'m'; return false;">chris<span style="display: none;">.nosp@m.</span>tian<span style="display: none;">.nosp@m.</span>.brun<span style="display: none;">.nosp@m.</span>sche<span style="display: none;">.nosp@m.</span>n@gma<span style="display: none;">.nosp@m.</span>il.c<span style="display: none;">.nosp@m.</span>om</a> (Christian Brunschen) </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a65d6281c4c8eb6a069e49cbb4d8ab775"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65d6281c4c8eb6a069e49cbb4d8ab775">&#9670;&nbsp;</a></span>BitSource()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">zxing::BitSource::BitSource </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classzxing_1_1_array_ref.html">ArrayRef</a>&lt; byte &gt; &amp;&#160;</td>
          <td class="paramname"><em>bytes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bytes</td><td>bytes from which this will read bits. Bits will be read from the first byte first. Bits are read within a byte from most-significant to least-significant bit. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9fd3c660b77ad591ceb0da69dd43566d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fd3c660b77ad591ceb0da69dd43566d">&#9670;&nbsp;</a></span>available()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int zxing::BitSource::available </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>number of bits that can be read successfully </dd></dl>

</div>
</div>
<a id="abe5162247749e9d9eeb9afcec8738252"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe5162247749e9d9eeb9afcec8738252">&#9670;&nbsp;</a></span>readBits()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int zxing::BitSource::readBits </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numBits</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">numBits</td><td>number of bits to read </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>int representing the bits read. The bits will appear as the least-significant bits of the int </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classzxing_1_1_illegal_argument_exception.html">IllegalArgumentException</a></td><td>if numBits isn't in [1,32] </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/qrcode/qrdecode/zxing/zxing/common/<a class="el" href="_bit_source_8h_source.html">BitSource.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/exquisite/qrcode/qrdecode/zxing/zxing/common/BitSource.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
